home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpconnect / nsIXPCScriptNotify.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  110 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXPCScriptNotify.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXPCScriptNotify_h__
  6. #define __gen_nsIXPCScriptNotify_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIXPConnectWrappedNative; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIXPCScriptNotify */
  21. #define NS_IXPCSCRIPTNOTIFY_IID_STR "b804504d-0025-4d6b-8ced-d94e41102a7f"
  22.  
  23. #define NS_IXPCSCRIPTNOTIFY_IID \
  24.   {0xb804504d, 0x0025, 0x4d6b, \
  25.     { 0x8c, 0xed, 0xd9, 0x4e, 0x41, 0x10, 0x2a, 0x7f }}
  26.  
  27. class NS_NO_VTABLE nsIXPCScriptNotify : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCSCRIPTNOTIFY_IID)
  31.  
  32.   /**
  33.      * Method invoked when a script has been executed by XPConnect
  34.      */
  35.   /* void ScriptExecuted (); */
  36.   NS_IMETHOD ScriptExecuted(void) = 0;
  37.  
  38.   /**
  39.      * Method invoked to preserve an nsIXPConnectWrappedNative as needed
  40.      */
  41.   /* void preserveWrapper (in nsIXPConnectWrappedNative wrapper); */
  42.   NS_IMETHOD PreserveWrapper(nsIXPConnectWrappedNative *wrapper) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIXPCSCRIPTNOTIFY \
  48.   NS_IMETHOD ScriptExecuted(void); \
  49.   NS_IMETHOD PreserveWrapper(nsIXPConnectWrappedNative *wrapper); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIXPCSCRIPTNOTIFY(_to) \
  53.   NS_IMETHOD ScriptExecuted(void) { return _to ScriptExecuted(); } \
  54.   NS_IMETHOD PreserveWrapper(nsIXPConnectWrappedNative *wrapper) { return _to PreserveWrapper(wrapper); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIXPCSCRIPTNOTIFY(_to) \
  58.   NS_IMETHOD ScriptExecuted(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScriptExecuted(); } \
  59.   NS_IMETHOD PreserveWrapper(nsIXPConnectWrappedNative *wrapper) { return !_to ? NS_ERROR_NULL_POINTER : _to->PreserveWrapper(wrapper); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsXPCScriptNotify : public nsIXPCScriptNotify
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIXPCSCRIPTNOTIFY
  70.  
  71.   nsXPCScriptNotify();
  72.  
  73. private:
  74.   ~nsXPCScriptNotify();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsXPCScriptNotify, nsIXPCScriptNotify)
  82.  
  83. nsXPCScriptNotify::nsXPCScriptNotify()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsXPCScriptNotify::~nsXPCScriptNotify()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* void ScriptExecuted (); */
  94. NS_IMETHODIMP nsXPCScriptNotify::ScriptExecuted()
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* void preserveWrapper (in nsIXPConnectWrappedNative wrapper); */
  100. NS_IMETHODIMP nsXPCScriptNotify::PreserveWrapper(nsIXPConnectWrappedNative *wrapper)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108.  
  109. #endif /* __gen_nsIXPCScriptNotify_h__ */
  110.